package com.data.sample.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.data.sample.entity.Calibration;
import com.data.sample.entity.OpcUaPoint;
import com.data.sample.mapper.OpcUaPointMapper;
import com.data.sample.service.IOpcUaPointService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
import java.util.Map;

/**
 * OPC UA点位 Service实现
 * @author zhaocx
 * @date 2025-10-24
 */
@Slf4j
@Service
public class OpcUaPointServiceImpl extends ServiceImpl<OpcUaPointMapper, OpcUaPoint>
        implements IOpcUaPointService {

    @Autowired
    OpcUaPointMapper opcUaPointMapper;

    @Override
    public List<OpcUaPoint> selectOpcUaPoints(String protocolId) {

        List<OpcUaPoint> OpcUaPointLst = opcUaPointMapper.selectPointsByProtocolId(protocolId);
        return OpcUaPointLst;
    }
}

